﻿<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>.net后台系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="shortcut icon" href="#" />
    <link rel="stylesheet" href="layuiAdmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="layuiAdmin//style/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="layuiAdmin/style/admin.css" media="all">

    <script>
        /^http(s*):\/\//.test(location.href) || alert('请先部署到 localhost 下再访问');
    </script>
</head>

<body class="layui-layout-body">
    <div id="LAY_app" style="display:none">
        <div class="layui-layout layui-layout-admin">
            <div class="layui-header">
                <!-- 头部区域 -->
                <ul class="layui-nav layui-layout-left">
                    <li style="user-select: none; line-height: 50px; padding: 0 15px; box-sizing: border-box; position: fixed; left: 0; top: 0; display: flex; align-items: center; ">
                        <!-- <img src="layuiAdmin/style/res/logo.png" style="margin-top:-7px">-->
                        <i class="fa fa-star-o fa-3x" aria-hidden="true"></i>
                        <span style="font-size: 20px;font-family:微软雅黑;margin-left:10px">.Net后台管理系统</span>

                        <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩" style="margin-left:10px">
                            <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
                        </a>
                    </li>
                    <!--<li class="layui-nav-item layadmin-flexible" lay-unselect>
                        <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩">
                            <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
                        </a>
                    </li>-->
                    <!-- <li class="layui-nav-item layui-hide-xs" lay-unselect>
                                <a href="" target="_blank" title="前台">
                                  <i class="layui-icon layui-icon-website"></i>
                                </a>
                              </li> -->
                    <!--<li class="layui-nav-item layui-hide-xs box" lay-unselect>
                                  <p class="animate">
                                      通知：系统将于12:00-14:00进行升级。升级期间给您造成的不便，我们深表歉意，敬请谅解。
                                  </p>
                              </li>-->
                </ul>
                <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right" style="margin-right: 10px;">
                    <li class="layui-nav-item layui-hide-xs" lay-unselect>
                        <!-- 天气信息-->
                        <div class="weather" pc style="margin-top: -4px;">
                            <div id="tp-weather-widget"></div>
                            <script>
                                (function (T, h, i, n, k, P, a, g, e) {
                                    g = function () {
                                        P = h.createElement(i);
                                        a = h.getElementsByTagName(i)[0];
                                        P.src = k;
                                        P.charset = "utf-8";
                                        P.async = 1;
                                        a.parentNode.insertBefore(P, a)
                                    };
                                    T["ThinkPageWeatherWidgetObject"] = n;
                                    T[n] || (T[n] = function () {
                                        (T[n].q = T[n].q || []).push(arguments)
                                    });
                                    T[n].l = +new Date();
                                    if (T.attachEvent) { T.attachEvent("onload", g) } else { T.addEventListener("load", g, false) }
                                }(window, document, "script", "tpwidget", "//widget.seniverse.com/widget/chameleon.js"))
                            </script>
                            <script>
                                tpwidget("init", {
                                    "flavor": "slim",
                                    "location": "WX4FBXXFKE4F",
                                    "geolocation": "enabled",
                                    "language": "zh-chs",
                                    "unit": "c",
                                    "theme": "chameleon",
                                    "container": "tp-weather-widget",
                                    "bubble": "disabled",
                                    "alarmType": "badge",
                                    "color": "#333",
                                    "uid": "U9EC08A15F",
                                    "hash": "039da28f5581f4bcb5c799fb4cdfb673"
                                });
                                tpwidget("show");
                            </script>
                        </div>
                    </li>

                    <li class="layui-nav-item" lay-unselect>
                        <a lay-href="views/home/message.html" layadmin-event="message" lay-text="消息中心">
                            <i class="layui-icon layui-icon-notice"></i>
                            <!-- 如果有新消息，则显示小圆点 -->
                            <span class="layui-badge-dot" id="isUnread"></span>
                        </a>
                    </li>
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;" layadmin-event="refresh" title="刷新">
                            <i class="layui-icon layui-icon-refresh-3"></i>
                        </a>
                    </li>
                    <li class="layui-nav-item layui-hide-xs" lay-unselect>
                        <a href="javascript:;" layadmin-event="theme">
                            <i class="layui-icon layui-icon-theme"></i>
                        </a>
                    </li>
                    <li class="layui-nav-item layui-hide-xs" lay-unselect>
                        <a href="javascript:;" layadmin-event="note">
                            <i class="layui-icon layui-icon-note"></i>
                        </a>
                    </li>
                    <li class="layui-nav-item layui-hide-xs" lay-unselect>
                        <a href="javascript:;" layadmin-event="fullscreen">
                            <i class="layui-icon layui-icon-screen-full"></i>
                        </a>
                    </li>
                    <li class="layui-nav-item" lay-unselect style="text-align: center;width: 120px;">
                        <a href="javascript:;" id="adminName">
                            <cite style="display:block;width:90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; "></cite>
                        </a>
                        <dl class="layui-nav-child" style="text-align:initial ;">
                            <dd>
                                <a lay-href="views/user/info.html">
                                    <i class="fa fa-address-card"></i>
                                    基本资料
                                </a>
                            </dd>
                            <dd>
                                <a lay-href="views/user/password.html">
                                    <i class="fa fa-cog"></i>
                                    修改密码
                                </a>
                            </dd>
                            <dd class="lockcms">
                                <a id="lock" style="text-align:left">
                                    <i class=" fa fa-lock"></i>
                                    锁屏
                                </a>
                            </dd>
                            <dd layadmin-event="logout">
                                <a style="text-align:left">
                                    <i class="fa fa-sign-out"></i>
                                    退出
                                </a>
                            </dd>
                        </dl>
                    </li>
                </ul>
            </div>

            <!-- 侧边菜单 -->
            <div class="layui-side layui-side-menu">
                <div class="layui-side-scroll" id="menu-nav">
                </div>
            </div>

            <!-- 页面标签 -->
            <div class="layadmin-pagetabs" id="LAY_app_tabs">
                <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
                <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
                <div class="layui-icon layadmin-tabs-control layui-icon-down">
                    <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
                        <li class="layui-nav-item" lay-unselect>
                            <a href="javascript:;"></a>
                            <dl class="layui-nav-child layui-anim-fadein">
                                <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
                                <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
                                <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
                            </dl>
                        </li>
                    </ul>
                </div>
                <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
                    <ul class="layui-tab-title" id="LAY_app_tabsheader">

                        <li lay-id="000000" lay-attr="views/home/homepage1.html" class="layui-this">
                            <i class="layui-icon layui-icon-home"></i>
                        </li>
                    </ul>
                </div>
            </div>

            <!-- 主体内容 -->
            <div class="layui-body" id="LAY_app_body">
                <div class="layadmin-tabsbody-item layui-show">
                    <iframe src="views/home/homepage1.html" name="0" frameborder="0" class="layadmin-iframe"></iframe>
                </div>
            </div>
            <!-- 辅助元素，一般用于移动设备下遮罩 -->
            <div class="layadmin-body-shade" layadmin-event="shade"></div>
        </div>
    </div>
    <div class="ws-menu-bar layui-bg-green layui-hide">
        <i class="layui-icon layui-icon-spread-left"></i>
    </div>
    <div class="ws-shade"></div>
    <script>
        document.write("<script type='text/javascript' src='layuiAdmin/xin.js?v=" + Date.now() + "'><\/script>");
    </script>
    <script src="layuiAdmin/layui/layui.js"></script>
    <script src="layuiAdmin/lib/extend/signalR/signalr.js"></script>
    <script src="layuiAdmin/modules/chathub.js?v=1"></script>
    <script src="layuiAdmin/modules/crypto-js.min.js"></script>
    <script>
        layui.config({
            base: 'layuiAdmin/', //静态资源所在路径
            version: myLop.version
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'home'], function () {
            //var user = $.getUser();
            //if (user.roles.some(t => t == "导服台")) {
            //    $("#LAY_app_tabsheader,#LAY_app_body").html('');
            //    $("a[data-modulename='队列管理'],cite:contains('导服台')").click();
            //}

            // 定义要加密的数据和密钥
            var data = "Hello, CryptoJS!";
            var key = "ThisIsASecretKey123";

            // 使用AES算法和密钥对数据进行加密
            var encryptedDataString = CryptoJS.AES.encrypt(data, key).toString();
            console.log(encryptedDataString);

            const decryptedData = CryptoJS.AES.decrypt(encryptedDataString, key).toString(CryptoJS.enc.Utf8);
            console.log(decryptedData);
            //setInterval(function () {if (!window.location.href.includes("localhost")) debugger }, 1000);
        })

    </script>
</body>

</html>